def lenge(num):
    return len(num)
test_num = eval(input("请输入字符串，列表或元组："))
print(lenge(test_num))